import request from '@/utils/request'

// 列表
export function GetListAPI(params) {
  return request({
    url: '/scheduling/productionPlan/list',
    method: 'GET',
    params
  })
}

// 计划确认
export function ConfirmAPI(data) {
  return request({
    url: '/scheduling/productionPlan/confirm',
    method: 'PUT',
    data
  })
}

// 计划退回
export function BackAPI(data) {
  return request({
    url: '/scheduling/productionPlan/back',
    method: 'PUT',
    data
  })
}

// 计划终止
export function TheEndAPI(data) {
  return request({
    url: '/scheduling/productionPlan/theEnd',
    method: 'PUT',
    data
  })
}

// 查询单个
export function GetOneAPI(params) {
  return request({
    url: '/scheduling/productionPlan/' + params,
    method: 'GET'
  })
}
